package router

import (
	"github.com/gin-gonic/gin"
	"userop_bff/controller/userfav"
)

func InitUserFavRouter(router *gin.Engine) {

	OrderRouter := router.Group("/v1/userfav")
	{
		OrderRouter.GET("", userfav.List)          //获取收藏信息列表
		OrderRouter.POST("", userfav.Add)          //添加收藏
		OrderRouter.DELETE("", userfav.Delete)     //删除收藏
		OrderRouter.GET("/detail", userfav.Detail) //查看用户是否已经收藏某件商品
	}
}
